<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
<!-- 这里引入导航信息header.tpl -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>新增待办</title>
<script type="text/javascript">
	var todoTypes = ${todoTyps};
	var fileType2JsonObj = ${fileType2Json};
	var fileType2Json = "";
	var operType = 'add';
</script>
</head>

<body class="sub-page">
	<div class="container">
		<div class="page-content">
			<form id="addForm" role="form" class="form-horizontal" method="post" action="<%=context%>business/myHome/todoAndOutput/save.do">
			<input type="hidden" id="operType" name="operType" value="${operType }"/>
			<div class="page-header">
				<h2 class="page-title">新增待办</h2>
			</div>
			<div class="page-body model">
				<div class="form-group">
				  <label class="col-sm-2 control-label">管理人<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				  	<select class="select2" name="manageCompany" id="manageCompany" onchange="changeManageCompany()"></select>
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-sm-2 control-label">服务类型<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				    <select class="select2" id="serviceType" name="serviceType" onchange="changeServiceType()">
				    	<option value=""></option>
				    	<wasp:dictOptions dctRootType="SERVICE_TYPE"></wasp:dictOptions>
				    </select>
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-sm-2 control-label">待办类型<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				    <select class="select2" id="todoType" name="todoType" onchange="changeTodoType()">
				    	<option value=""></option>
				    </select>
				  </div>
				</div>
				<div class="form-group">
				  <label class="col-sm-2 control-label">待办日期<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				    <input type="text" placeholder="待办日期" class="form-control" name="todoDate" id="todoDate" value="" />
				  </div>
				</div>
				<div class="form-group" id="prjCodeContainer">
				  <label class="col-sm-2 control-label">产品<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				  	<select class="select2" name="prjCode" id="prjCode"></select>
				  </div>
				</div>
				
				<div class="form-group">
				  <label class="col-sm-2 control-label">无材料上传<span class="text-danger">*</span></label>
				  <div class="col-sm-10 form-inner">
				  	<div>
					  	<label><input type="radio" name="noFile" value="Y"/> 是</label>
					  	<label><input type="radio" name="noFile" value="N"/> 否</label>
				  	</div>
				  </div>
				</div>
				
				<div id="uploadTips" class="uploadTips" style="display: none;">
					<p>需要上传的材料如下：</p>
					<span id="needUploadFileTyps">
						
					</span>
					
				</div>
				
				<div class="model-head">
					<span class="head-boder-left"></span>
					<h2>附件</h2>
					<input type="hidden" id="attachJson" name="attachJson">
				</div>
				<table class="table attachFileContainer" id="attachContainertodoAddView">
					<tbody>
						<tr>
							<td colspan="1" style="border-top:0;font-weight:bolder;">
							        附件列表<input id="attIdsInput" name="attIds" type="hidden">
							</td>
							<td colspan="5" class="tipsTd" style="border-top: 0;">
								<span class="attachUploadWidget file-upload-file-name-area" style="color: red; line-height: 34px; display: inline;">温馨提醒：上传单个附件大小不能超过30M；对附件进行新增操作，都需要点击保存才能生效。</span>
							</td>
							<td class="attachUploadWidget" colspan="1" style="border-top: 0px; display: table-cell;">
								<button type="button" class="btn btn-primary pull-right" name="btnCopyProject" id="uploadBtnCustom">上传附件</button>
							</td>
						</tr>
						<tr class="attachTitle"><td>附件名称</td><td>附件来源</td><td>材料类型</td><td>附件状态</td><td>上传人员</td><td>上传时间</td><td>操作列表</td></tr>
					</tbody>
				</table>
			</div>
			<div class="page-footer">
				<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="WASP_PRD_TEMPLATE.submitAddForm('S');">提交</button>
				<button type="button" class="btn btn-link btn-w-xs" onclick="window.close();">取消</button>
			</div>
			
			</form>
		</div>
	</div>

<script type="text/javascript" src="<%=context%>resources/modules/system/common/multi.upload.js?r=<%=Math.random()%>"></script>
<script type="text/javascript" src="<%=context%>resources/modules/business/myHome/todoAndOutput/todoAdd.js?r=<%=Math.random()%>"></script>
</body>
</html>